# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
pkgname=libfreeaptx
pkgver=0.1.1
pkgrel=1
pkgdesc="Free implementation of Audio Processing Technology codec (aptX)"
url="https://github.com/iamthehorker/libfreeaptx"
arch="all"
license="LGPL-2.1-or-later"
subpackages="$pkgname-dev $pkgname-tools"
source="https://github.com/iamthehorker/libfreeaptx/archive/$pkgver/libfreeaptx-$pkgver.tar.gz
	0001-Fixed-libfreeaptx-reporting-wrong-version-number.patch
	"
options="!check" # No testsuite

build() {
	make CPPFLAGS="$CPPFLAGS" CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS"
}

package() {
	make PREFIX=/usr DESTDIR="$pkgdir" install
}

tools() {
	pkgdesc="$pkgdesc (commandline utils)"
	depends=""
	amove usr/bin
}

sha512sums="
53dd7f348120fea0425b365f26668925dd435a8a3a0c5e98476764a452c7d729f2a3556e953c557d0ccaaa65391265c8c3c61fc29377cf60079fa0bed2cc20b1  libfreeaptx-0.1.1.tar.gz
372a1e9dd837ac4b74ab95e002b44ed1141db55b1bf47285f6a8adda57072700646d6d1dd4ccea52be7bc2c49906a9e517b59087f13c512fb0b03a20206535c6  0001-Fixed-libfreeaptx-reporting-wrong-version-number.patch
"
